<?php
	
?>

<div>
	<table>
		<caption>Роли</caption>
		<thead>
			<tr data-bind="foreach:roleTable().model.head">
				<th data-bind="text:$data"></th>
			</tr>
		</thead>
		<tbody data-bind="foreach:roleTable().model.body">
			<tr data-bind="foreach:$data">
				<td data-bind="text:$data"></td>
			</tr>		
		</tbody>
	</table>
</div>


<script>
	var tmp_string = <?php  echo json_encode($roleTable); ?>;
	var _DATA = _DATA || {};
	_DATA['role'] = tmp_string;
</script>